
import * as URL from '@/constants/api'
import req from '@/untils/request'

export function getCommentsList ([type, source]) {
  return req({
    url: URL.COMMENTS_LIST,
    params: {
      type,
      source,
    }
  })
    .then(res => res.data.data)
    .catch(() => [])
}
